<!--
Copyright 2017 The Kubernetes Dashboard Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<md-dialog aria-label="[[Delete a {{::$ctrl.resourceKindName}}|Title for a delete resource dialog.]]"
           layout="column">
  <md-dialog-content layout-padding>
    <h4 class="md-title">[[Delete a {{::$ctrl.resourceKindName}}|Title for a delete resource dialog.]]</h4>
    <div ng-if="::$ctrl.objectMeta.namespace">
      [[Are you sure you want to delete {{::$ctrl.resourceKindName}} <i>{{::$ctrl.objectMeta.name}}</i> in namespace <i>{{::$ctrl.objectMeta.namespace}}</i>?|Confirmation question, appears before any dashboard resource will be deleted.]]
    </div>
    <div ng-if="::!$ctrl.objectMeta.namespace">
      [[Are you sure you want to delete {{::$ctrl.resourceKindName}} <i>{{::$ctrl.objectMeta.name}}</i>?|Confirmation question, appears before any dashboard resource will be deleted. (unnamespaced resources)]]
    </div>
    <md-dialog-actions>
      <md-button class="md-primary kd-cancel-btn"
                 ng-click="$ctrl.cancel()">
        [[Cancel|Label for cancel button.]]
      </md-button>
      <md-button class="md-primary kd-delete-btn"
                 ng-click="$ctrl.remove()">
        [[Delete|Label for delete button.]]
      </md-button>
    </md-dialog-actions>
  </md-dialog-content>
</md-dialog>
